package com.portal.business.price.action;




import com.portal.business.functions.FunctionsService;
import com.portal.business.price.PriceService;
import com.portal.business.price.action.form.PriceSearchForm;
import com.portal.business.price.action.model.PriceModel;
import com.portal.business.price.dto.PriceDTO;
import com.portal.framework.exception.AppException;
import com.portal.framework.webutil.BaseAction;


/**
 * 
 * 项目名称: Portal     
 * 类名称:   NewsAction     
 * 类描述:   咨询动态(只有查询功能,增删改功能在客服系统后台里调用操作)  
 * 创建人:   骆海东
 * 创建时间: Aug 31, 2011 10:15:43 AM     
 * 最后修改人:   骆海东
 * 最后修改时间: Aug 31, 2011 10:15:43 AM     
 * 最后修改备注:
 */
public class PriceAction extends BaseAction {
	    
	private static final long serialVersionUID = -7865755029941700120L;

	private PriceModel model = new PriceModel();
	
	private PriceService priceService;
	
	private FunctionsService functionsService;
	
	
	/**
	 * 查询
	 * 
	 * @return
	 * @throws AppException
	 */
	public String goPriceMain() {
		PriceSearchForm sf=model.getSearchForm();
        //分页查询结果集
		this.model.setPagerResult(this.findByCondition(PriceDTO.class, sf));
	    //加载功能点
	    this.model.setFList(this.functionsService.findAll());
		return SUCCESS;
	}

	public PriceModel getModel() {
		return model;
	}

	public void setModel(PriceModel model) {
		this.model = model;
	}

	public PriceService getPriceService() {
		return priceService;
	}

	public void setPriceService(PriceService priceService) {
		this.priceService = priceService;
	}

	public FunctionsService getFunctionsService() {
		return functionsService;
	}

	public void setFunctionsService(FunctionsService functionsService) {
		this.functionsService = functionsService;
	}


}
